class Solution:

    def isCircularSentence(self, sentence: str) -> bool:
        if sentence[0] != sentence[-1]:
            return False
        for i, v in enumerate(sentence):
            if v == ' ' and sentence[i - 1] != sentence[i + 1]:
                return False
        return True
